import request from '/@/utils/request';

// 查询视频列列表
export function listVideo(query?: Object) {
  return request({
    url: '/module/platform/video/list',
    method: 'get',
    params: query
  })
}

// 查询视频列详细
export function getVideo(id?: number) {
  return request({
    url: '/module/platform/video/' + id,
    method: 'get'
  })
}

// 新增视频列
export function addVideo(data?: Object) {
  return request({
    url: '/module/platform/video',
    method: 'post',
    data
  })
}

// 修改视频列
export function updateVideo(data?: Object) {
  return request({
    url: '/module/platform/video',
    method: 'put',
    data
  })
}

// 删除视频列
export function delVideo(id?: number) {
  return request({
    url: '/module/platform/video/' + id,
    method: 'delete'
  })
}

// 导出视频列
export function exportVideo(query?: Object) {
  return request({
    url: '/module/platform/video/export',
    method: 'get',
    params: query
  })
}
